package com.stg.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.stg.bean.Message;
import com.stg.dao.MessageDao;
import com.stg.service.MessageService;

@Service("MessageService")
public class MessageServiceImpl implements MessageService {

	@Resource
	private MessageDao messageDao;
	
	@Override
	public void sendMessage(Message message) {
		messageDao.sendMessage(message);
	}

	@Override
	public void receiveMessage(Message message) {
		messageDao.receiveMessage(message);
	}

	@Override
	public Message findMessageById(Long id) {
		return messageDao.findMessageById(id);
	}

}
